import axios from "axios"


axios.defaults.baseURL = "http://localhost:3000"
// 登录接口
export const login = (data={})=>{
  return axios.get(`/login/cellphone?phone=${data.phone}&password=${data.password}`,data).then(res=>res.data)
}

// 退出登录
export const logout = (data={})=>{
  return axios.get(`/logout`,data).then(res=>res.data)
}

//  banner
export const findBanner = (data={})=>{
  return axios.get(`/banner`).then(res=>res.data)
}

// 热门推荐  
export const topList = (data={})=>{
  return axios.get(`/top/playlist?limit=${data.limit}&order=${data.order}`).then(res=>res.data)
}